package com.t.bricks.bussiness.db.entity.paytypestatist.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;


import com.t.bricks.annotation.DataInfo;

/**
 * 收支类型统计'PayTypeStatist'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 * @author HuangXinBian
 * @DateTime 2021年07月23日 12:38:23
 */
@ApiModel("收支类型统计PayTypeStatist")
@DataInfo(sDbName="BricksSafe", sTableName="PayTypeStatist")
public class PayTypeStatistBase implements Serializable {

	private static final long serialVersionUID = 1L;// 使用rmi时需修改

	/**
	 * 记录编号
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="uId", sComment="记录编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="记录编号", example="")
	//[end]
	protected String uId;

	/**
	 * 统计粒度(枚举,1:日;2:月;3:年)
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="iType", sComment="统计粒度(枚举,1:日;2:月;3:年)", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=1, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="统计粒度(枚举,1:日;2:月;3:年)", example="1")
	//[end]
	protected Integer iType;

	/**
	 * 时间
	 */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")//解决表单提交时字符串时间值错误
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="dDate", sComment="时间", isDbField=true, sDbFileType="datetime",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=23, isDecimal=false, iIntegralLength=-1, iDecimalLength=-1, iIndex=2 )
	@ApiModelProperty(value="时间", example="")
	//[end]
	protected Date dDate;

	/**
	 * 年
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="iYear", sComment="年", isDbField=true, sDbFileType="int",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=4, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="年", example="")
	//[end]
	protected Integer iYear;

	/**
	 * 月
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="iMonth", sComment="月", isDbField=true, sDbFileType="int",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=2, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="月", example="")
	//[end]
	protected Integer iMonth;

	/**
	 * 日
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="iDay", sComment="日", isDbField=true, sDbFileType="int",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=2, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="日", example="")
	//[end]
	protected Integer iDay;

	/**
	 * 类型名称
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="sName", sComment="类型名称", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=32, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=6 )
	@ApiModelProperty(value="类型名称", example="")
	//[end]
	protected String sName;
	
	/**
	 * 支出
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="mBill", sComment="支出", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=11, isDecimal=false, iIntegralLength=7, iDecimalLength=2, iIndex=8 )
	@ApiModelProperty(value="支出", example="0.00")
	//[end]
	protected BigDecimal mBill;
	
	/**
	 * 收入
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="mIncome", sComment="收入", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=11, isDecimal=false, iIntegralLength=7, iDecimalLength=2, iIndex=9 )
	@ApiModelProperty(value="收入", example="0.00")
	//[end]
	protected BigDecimal mIncome;
	
	/**
	 * 剩余
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="mRemaind", sComment="剩余", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=false,
		iMaxLength=11, isDecimal=false, iIntegralLength=7, iDecimalLength=2, iIndex=10 )
	@ApiModelProperty(value="剩余", example="0.00")
	//[end]
	protected BigDecimal mRemaind;
	
	/**
	 * 省钱
	 */
	//[start]
	@DataInfo( sDbName="BricksSafe", sTableName="PayTypeStatist",
		sName="mTotalSave", sComment="省钱", isDbField=true, sDbFileType="decimal",
		sDefaultData="0.00", isExtra=false, iskey=false, isNull=true,
		iMaxLength=11, isDecimal=false, iIntegralLength=7, iDecimalLength=2, iIndex=11 )
	@ApiModelProperty(value="省钱", example="0.00")
	//[end]
	protected BigDecimal mTotalSave;

	/**
	 * 取 记录编号
	 * @return String
	 */
	public String getuId() {
		return uId;
	}

	/**
	 * 设置记录编号
	 * @param uId
	 */
	public void setuId(String uId) {
		this.uId = uId;
	}

	/**
	 * 取 统计粒度(枚举,1:日;2:月;3:年)
	 * @return Integer
	 */
	public Integer getiType() {
		return iType;
	}

	/**
	 * 设置统计粒度(枚举,1:日;2:月;3:年)
	 * @param iType
	 */
	public void setiType(Integer iType) {
		this.iType = iType;
	}

	/**
	 * 取 时间
	 * @return Date
	 */
	public Date getdDate() {
		return dDate;
	}

	/**
	 * 设置时间
	 * @param dDate
	 */
	public void setdDate(Date dDate) {
		this.dDate = dDate;
	}

	/**
	 * 取 年
	 * @return Integer
	 */
	public Integer getiYear() {
		return iYear;
	}

	/**
	 * 设置年
	 * @param iYear
	 */
	public void setiYear(Integer iYear) {
		this.iYear = iYear;
	}

	/**
	 * 取 月
	 * @return Integer
	 */
	public Integer getiMonth() {
		return iMonth;
	}

	/**
	 * 设置月
	 * @param iMonth
	 */
	public void setiMonth(Integer iMonth) {
		this.iMonth = iMonth;
	}

	/**
	 * 取 日
	 * @return Integer
	 */
	public Integer getiDay() {
		return iDay;
	}

	/**
	 * 设置日
	 * @param iDay
	 */
	public void setiDay(Integer iDay) {
		this.iDay = iDay;
	}

	/**
	 * 取 类型名称
	 * @return String
	 */
	public String getsName() {
		return sName;
	}

	/**
	 * 设置类型名称
	 * @param sName
	 */
	public void setsName(String sName) {
		this.sName = sName;
	}

	/**
	 * 取 支出
	 * @return Long
	 */
	public BigDecimal getmBill() {
		return mBill;
	}

	/**
	 * 设置 支出
	 * @param mBill
	 */
	public void setmBill(BigDecimal mBill) {
		this.mBill = mBill;
	}

	/**
	 * 取 收入
	 * @return Long
	 */
	public BigDecimal getmIncome() {
		return mIncome;
	}

	/**
	 * 设置 收入
	 * @param mIncome
	 */
	public void setmIncome(BigDecimal mIncome) {
		this.mIncome = mIncome;
	}

	/**
	 * 取 剩余
	 * @return Long
	 */
	public BigDecimal getmRemaind() {
		return mRemaind;
	}

	/**
	 * 设置 剩余
	 * @param mRemaind
	 */
	public void setmRemaind(BigDecimal mRemaind) {
		this.mRemaind = mRemaind;
	}

	/**
	 * 取 省钱
	 * @return Long
	 */
	public BigDecimal getmTotalSave() {
		return mTotalSave;
	}

	/**
	 * 设置 省钱
	 * @param mTotalSave
	 */
	public void setmTotalSave(BigDecimal mTotalSave) {
		this.mTotalSave = mTotalSave;
	}

}
